package cn.net.gemai.springboot_eureka_client_provider_ribbon.controller;

import cn.net.gemai.springboot_eureka_client_provider_ribbon.service.MyService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class MyController {

    @Resource
    MyService myService;

    /**
     * restful 风格的接口调用
     * customer controller 调用 provider controller
     * @return
     */
    @GetMapping("/getContent")
    public  String getContent(){
        return  myService.getContent();
    }
}
